<ion-view view-title="我的">
	<ion-nav-buttons side="primary">
		<button class="button ion-android-home" ng-click="closeSys()" style="font-size:25px;"></button>
	</ion-nav-buttons>
	
	<ion-content>
		
		<style type="text/css">
		.item-complex.item-icon-right .item-content{
    		padding-right:5px;
    		padding-top:0px;
    		padding-bottom:0px;
    	}
    	
  		.item-avatar, .item-avatar .item-content, .item-avatar-left, .item-avatar-left .item-content{
    		padding-left:0px;
    	}
        </style>
        
		<div style="height: 80px;">
			<ion-list>
		      <ion-item class="item-remove-animate item-avatar item-icon-right" href="#/tab/userInfo?searchUserId={{user.userId}}" type="item-text-wrap" style="min-height:80px;height: 83px;font-size: 13px;padding:0px;">
					<div style="float: left;width: 60px;margin-left: 30px;">
						<div ng-if="user.headPic!=null&&user.headPic!=''"><img ng-src="http://image.credit-manage.com/{{user.headPic}}" width="60" style="border-radius: 100px;margin-top: 10px;"></div>
						<div ng-if="user.headPic==null||user.headPic==''"><img src="../img/head.png" width="60" style="border-radius: 5px;margin-top: 10px;"></div>
					</div>
					<div style="float: left;padding-top: 20px;margin-left: 10px;">
						<h2>{{user.name}}</h2>
						<p style="font-size: 13px;" ng-if="user.breakCount<=0">无逾期</p>
						<p style="font-size: 13px;" ng-if="user.breakCount>0">有{{user.breakCount}}笔逾期</p>
					</div>
					<i class="icon ion-ios-arrow-right icon-accessory"></i>
				</ion-item>
		    </ion-list>
	   </div>
	   
	<!-- 	<div style="font-size: 14px;text-align:left;height: 40px;line-height: 40px;border-bottom:1px solid #f8f8f8;padding-top:3px;padding-left:20px;display: block;">
			<a href="#/tab/user/accountGz" style="background-color: white;"><div style="color:#555555;float: left;width: 40%;padding-left:30px;" ng-click="">关注&nbsp;&nbsp;&nbsp;&nbsp;{{gz}}</div></a>
			<a href="#/tab/user/accountFs"><div style="color:#555555;float: left;width: 40%;padding-left:20px;">粉丝&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{fs}}</div></a>
			<div ng-click="showTip2()" style="float: left; width: 19%;padding-left:15px;"><img  src="../img/icon/icon_bz.png" style="margin-top:13px;height:14px;float: left;"></img></div>
		</div> -->
		<div class="row">
			<div class="col col-40" style="text-align: center;"><a style="color:#555555;text-decoration:none;" href="#/tab/user/accountGz">关注&nbsp;&nbsp;&nbsp;&nbsp;{{gz}}</a></div>
			<div class="col col-40" style="text-align: center;"><a style="color:#555555;text-decoration:none;" href="#/tab/user/accountFs">粉丝&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{fs}}</a></div>
			<div class="col col-20" ng-click="showTip2()" style="padding-right: 2.5%"><img   src="../img/icon/icon_bz.png" style="vertical-align:middle;display: block;height:15px;float: right;"></img></div>
		</div>
		<div style="height: 10px;background-color: #F8F8F8;"></div>
	   
	   <div style="background-color: white;clear: left;margin: 0 auto;">
	   	
	   		<a href="#/tab/user/accountDetail" style="background-color: white;">
			<div style="float: left;width: 50%;margin-top:10px;margin-bottom:5px;" ng-click="">
				<div style="float: left;width:32px;margin-left: 30px;">
					<div style="margin-top: 7px;"><img src="../img/my/icon_zjr.png" width="32" ></div>
				</div>
				<div style="float: left;padding-left:10px;">
					<div style="font-size: 13px;text-align: left;color:#555555;">自金融余额</div>
					<div style="font-size: 13px;text-align:left;color: #888888;">{{user.balance | number:2}}</div>
				</div>
			</div>
			</a>
			
			<a href="javascript:void(0);" style="background-color: white;" ng-click="transferInAccount()">
			<div style="float: left;width: 50%;border-left: 1px solid #f8f8f8;margin-top:10px;margin-bottom:5px;">
				<div style="float: left;width:32px;margin-left: 30px;">
					<div style="margin-top: 7px;"><img src="../img/my/icon_zr.png" width="32" ></div>
				</div>
				<div style="float: left;padding-left:10px;height: 40px;line-height: 40px;">
					<div style="font-size: 13px;text-align: left;color:#555555;">转入</div>
				</div>
			</div>
			</a>
			
			<div style="height: 1px;background-color: #F8F8F8;clear: left;"></div>
			
			<a href="javascript:void(0);" style="background-color: white;">
			<div style="float: left;width: 50%;margin-top:10px;margin-bottom:5px;" ng-click="">
				<div style="float: left;width:32px;margin-left: 30px;">
					<div style="margin-top: 7px;"><img src="../img/my/icon_txwl.png" width="32" ></div>
				</div>
				<div style="float: left;padding-left:10px;">
					<div style="font-size: 13px;text-align: left;color:#555555;">天下无赖余额</div>
					<div style="font-size: 13px;text-align:left;color: #888888;">{{txwlAccount | number:2}}</div>
				</div>
			</div>
			</a>
			
			<a href="javascript:void(0);" style="background-color: white;" ng-click="transferOutAccount()">
			<div style="float: left;width: 50%;border-left: 1px solid #f8f8f8;margin-top:10px;margin-bottom:5px;" ng-click="">
				<div style="float: left;width:32px;margin-left: 30px;">
					<div style="margin-top: 7px;"><img src="../img/my/icon_zc.png" width="32" ></div>
				</div>
				<div style="float: left;padding-left:10px;height: 40px;line-height: 40px;">
					<div style="font-size: 13px;text-align: left;color:#555555;">转出</div>
				</div>
			</div>
			</a>
			
			<div style="height: 1px;background-color: #F8F8F8;clear: left;"></div>
			
			<a href="#/tab/user/borrow" style="background-color: white;">
			<div style="float: left;width: 50%;border-left: 1px solid #f8f8f8;margin-top:10px;">
				<div style="float: left;width:32px;margin-left: 30px;">
					<div style="margin-top: 5px;"><img src="../img/my/icon_zjc.png" width="32" ></div>
				</div>
				<div style="float: left;padding-left:10px;">
					<div style="font-size: 13px;text-align: left;color:#555555;">总借入</div>
					<div style="font-size: 13px;text-align:left;color: #888888;">{{userCount.produceMoney | number:0}}</div>
				</div>
			</div>
			</a>
			
			<a href="#/tab/user/loan">
			<div style="float: left;width: 50%;border-left: 1px solid #f8f8f8;margin-top:10px;">
				<div style="float: left;width:32px;margin-left: 30px;">
					<div style="margin-top: 5px;"><img src="../img/my/icon_zjrr.png" width="32" ></div>
				</div>
				<div style="float: left;padding-left:10px;">
					<div style="font-size: 13px;text-align:left;color:#555555;">总借出</div>
					<div style="font-size: 13px;text-align:left;color: #888888;">{{userCount.loanMoney | number:0}}</div>
				</div>
			</div>
			</a>
			
			<div style="height: 1px;background-color: #F8F8F8;clear: left;"></div>
			<div style="height: 10px;background-color: #F8F8F8;"></div>
	 		<ul class="list">
	 			<a href="#/tab/user/loanRedList" style="text-decoration:none;">
	 			<li class="item item-icon-right">
				<font style="font-size:13px;padding-left:6%">我的投资券</font>
				<div style="position: absolute;right:9%;top: 47%; background:#f89624;width: 4px;height: 4px;border-radius:4px;"></div>
				<i class="icon ion-ios-arrow-right icon-accessory" ></i>
				</li>
	 			</a>
				<li class="item" style="font-size: 13px;padding-top: 0;padding-bottom: 0;height: 55px;line-height: 55px;">
  					<div style="display: inline-block;width: 40%;text-align: left;padding-left:5%;">我的邀请码 &nbsp;<img src="../img/icon/icon_bz.png" style="vertical-align:middle;height: 15px;" ng-click="showTip()"></img></div>
 					<div style="display: inline-block;width: 30%;text-align: left;padding-right: 2%;">{{user.inviteCode}}</div>
					<div style="display: inline-block;width: 28%;text-align: center;">
                     <button type="button" style="font-size: 13px;background-color: white;border:1px solid #0080FF;border-radius:5px;" ng-click="saveStringToPhone(user.inviteCode)">
  								复制
					</button>		
					</div>
				</li>
				
				<li  class="item" style="font-size: 13px;padding-top: 0;padding-bottom: 0;height: 55px;line-height: 55px;">
					<div style="display: inline-block;width: 40%;text-align: left;padding-left:5%;" ng-if="user.hasInvitor==true">已绑定邀请码</div>
					<div style="display: inline-block;width: 40%;text-align: left;padding-left:5%;" ng-if="user.hasInvitor==false">邀请码</div>
					<div style="color:#aaaaaa;display: inline-block;width: 30%;text-align: left;padding-right: 2%;" ng-if="user.hasInvitor==true">{{user.invitorCode}}</div>
					<div style="display: inline-block;width:30%;text-align: left;padding-right: 2%;" ng-if="user.hasInvitor==false"> <input type="text"  ng-if="user.hasInvitor==false"  ng-model="user.subInviteCode"   placeholder="要绑定的邀请码" maxlength="6"/></div>
					
					<div style="display: inline-block;width: 28%;text-align: center;" ng-if="user.hasInvitor==false">
						 	<button style="font-size: 13px;background-color: white;border:1px solid #0080FF;border-radius:5px;"  ng-click="submitInviteCode()">
  								绑定
							</button>
						
					</div>
				</li>
				
				<a href="#/tab/user/inviteList" style="text-decoration:none;">
				<li class="item item-icon-right">
				<font style="font-size:13px;padding-left:6%">邀请收益列表</font>
				<i class="icon ion-ios-arrow-right icon-accessory" ></i>
				</li>
				</a>
			</ul> 
			<p style="line-height:14px;font-size: 13px; color: #aaaaaa;text-indent: 2em;">温馨提示:</p>
			<p style="line-height:14px;font-size: 13px; color: #aaaaaa;text-indent: 2em;">请确保自金融账户余额充足,还款日自动划扣</p>
		</div>
		
	</ion-content>
</ion-view>